#include <iostream>
#include <pthread.h>
#include <sys/eventfd.h>

int fd = -1;

int main()
{
    pthread_t tid1, tid2;
    pthread_create(&tid1, nullptr, wait, "thread-1");
    pthread_create(&tid2, nullptr, wait, "thread-2");



    pthread_join(tid1, nullptr);
    pthread_join(tid2, nullptr);

}